package stu.sup.dto;

import stu.sup.entity.Product;

import stu.sup.entity.UserInfo;

import stu.sup.entity.UserLogin;

import java.util.Date;

/**
 * Created by HUAWEI on 2020/6/22.
 */
public class BuycarDto {

    private Product product;

    private UserLogin userLogin;


    private Integer productNum;

    private Double productPrice;

    private Date addTime;

    public BuycarDto() {
    }

    public BuycarDto(Product product, UserLogin userLogin, Integer productNum, Double productPrice, Date addTime) {
        this.product = product;
        this.userLogin = userLogin;
        this.productNum = productNum;
        this.productPrice = productPrice;
        this.addTime = addTime;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public UserLogin getUserLogin() {
        return userLogin;
    }

    public void setUserLogin(UserLogin userLogin) {
        this.userLogin = userLogin;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BuycarDto{");
        sb.append("product=").append(product);
        sb.append(", userLogin=").append(userLogin);
        sb.append(", productNum=").append(productNum);
        sb.append(", productPrice=").append(productPrice);
        sb.append(", addTime=").append(addTime);
        sb.append('}');
        return sb.toString();
    }
}



